#include <iostream>
#include <cmath>

using namespace std;
int main(int argc, char **argv[])
{
  double A, B, C;
  cin >> A >> B >> C;
  cout << "AC = " << (C - A) <<endl;
  cout << "BC = " << (C - B) <<endl;
  cout << "SUMMA = " << (C - A) + (C - B) <<endl;
  return 0;
}
